<?php echo anchor(base_url(),"Home");?>
<?php echo validation_errors();?>
<?php echo form_open("user/User/create");?>
<table>
    <tr>
        <td><label for="username">Username</label></td>
        <td><input type="text" name="username" id="username" value="<?php echo set_value('username');?>"/></td>
    </tr>
    
    <tr>
        <td><label for="password">Password</label></td>
        <td><input type="password" id="password" name="password" value="<?php echo set_value('password');?>"/></td>
    </tr>
    <tr>
        <td><label for="first_name">First name</label></td>
        <td><input type="text" id="first_name" name="first_name" value="<?php echo set_value('first_name');?>"/></td>
    </tr>
    <tr>
        <td><label for="last_name">Last name</label></td>
        <td><input type="text" id="last_name" name="last_name" value="<?php echo set_value('last_name');?>"/></td>
    </tr>
    <tr>
        <td><label for="email">Email</label></td>
        <td><input type="text" id="email" name="email" value="<?php echo set_value('email');?>"/></td>
    </tr>
    <tr>
    <td><label for="role_id">Role</label></td>
    <td>
    	<select name="role_id">
    	<?php foreach ($parent_list as $role) {?>
    		<option value="<?php echo $role -> id; ?>" <?php echo set_select('group_id', $role->id)?>><?php echo $role -> name; ?></option>
    	<?php } ?>
    	</select>
    </td>
  </tr>
  <tr>
    <tr>
    	<td><input type="submit" value="Submit"/></td>
    	<td></td>
    </tr>
</table>
    <?php echo form_close();?>
    
